package com.timber.util;

import java.util.Vector;

public class InventoryMgr extends SLDataMgr{

	public InventoryMgr( ) {
		super("com.timber.util.IteamBean",
		"common..p_Get_InventoryDetails");
		setDataserverName(Global.READONLY);
	}
	
	public Vector getInventoryDetails(IteamBean iteamBean)
	{
		Vector v= new Vector();
		v.add(iteamBean.getItemCode());
		v.add(iteamBean.getItemName());
    	v.add(iteamBean.getItemClass());
    	v.add(iteamBean.getLocation());
    	v.add(iteamBean.getLotNumber());
    	v.add(iteamBean.getPurchasedFrom());
    	v.add(new Double(iteamBean.getLength()));
    	v.add(new Double(iteamBean.getWidth()));
		runProcAsync(v);
		System.out.println("size of result ----:"+dataVector.size());
		return dataVector;
	}
	
	public Vector getItemDetails(String itemCode)
	{
		Vector v= new Vector();
    	v.add(itemCode);
		runProcAsync(v);
		System.out.println("size of result ----:"+dataVector.size());
		return dataVector;
	}
	
	
	public Vector getInventoryDetails()
	{
		Vector v= new Vector();
		runProcAsync(v);
		System.out.println("size of result ----:"+dataVector.size());
		return dataVector;
	}
	

}
